dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlHelper Class / ExecuteDataset Method / ExecuteDataset(MySqlConnection,String,MySqlParameter[]) Method
The MySqlConnection object to use.
The command to execute.
Parameters to use for the command.

In This Topic
    ExecuteDataset(MySqlConnection,String,MySqlParameter[]) Method
    In This Topic
    Executes a single SQL command and returns the resultset in a System.Data.DataSet. The state of the MySqlConnection object remains unchanged after execution of this method.
    Syntax
    'Declaration
     
    Public Overloads Shared Function ExecuteDataset( _
       ByVal connection As MySqlConnection, _
       ByVal commandText As String, _
       ByVal ParamArray commandParameters() As MySqlParameter _
    ) As DataSet
    public static DataSet ExecuteDataset( 
       MySqlConnection connection,
       string commandText,
       params MySqlParameter[] commandParameters
    )

    Parameters

    connection
    The MySqlConnection object to use.
    commandText
    The command to execute.
    commandParameters
    Parameters to use for the command.

    Return Value

    System.Data.DataSet containing the resultset.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also